import {componentsFnMap} from '../../config'
const settings = {
    "idPrefix":``,
    "labelName":"音频流水号",
    "componentNameShow":"音频流水号", // 负责显示组件的名称
    "busname":"ycAudioStreamIdentifier", // 唯一ID，不能重复,busname的值，关联着组件注册代码内部声明的全局校验方法，
    "componentName":'yc-audioStreamIdentifier', // 组件名称用作vue中v-for的key值组成
}
componentsFnMap[settings.componentName] = {
    getHtmlStr (options = {},otherOptions={otherComponentSettings:``,showSetting:''}) {
       let {boxId, formBoxId,inputType="正常",componentValue = '',idPrefix = '',formName = '', formItemName = '',focusIndex = '',labelName = '标签名',labelWidth = '80px',placeholder = "不能为空"} = options
       let {minLength = '',maxLength = '',needTooltip = '0',colMd = '6',show = true,disabled} = options
       let id = `${idPrefix}`
       const {busname,componentName} = settings
       let { otherComponentSettings,showSetting } = otherOptions
       return `
            <el-col v-bind="currentLayoutOptions" ${showSetting} id="${boxId}">
              <el-form-item prop="${formItemName}" label="${labelName}">
                <el-input
                  v-model="${formName}.props.${formItemName}"
                  placeholder="${placeholder}"${otherComponentSettings}
                  focusIndex = "${formBoxId}#${formItemName}"
                />
              </el-form-item>
            </el-col>    
       `
   }
}

export default settings